/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --accent-color: #f39c12;
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --text-color: #ffffff;
    --text-secondary: #b8b8b8;
    --border-color: #2d3561;
    --hover-color: #0f3460;
    --gradient-start: #e74c3c;
    --gradient-end: #c0392b;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.logo-icon {
    font-size: 36px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.logo-text {
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after {
    width: 80%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(231, 76, 60, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.4s ease;
}

.btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* 卡片网格样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

.card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-badge.update {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--accent-color);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* 分类卡片样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.category-image {
    width: 100%;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: all 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(231, 76, 60, 0.9), rgba(231, 76, 60, 0.3));
}

.category-overlay h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.category-overlay p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.category-count {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: bold;
}

/* 文章样式 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.3);
}

.article-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 30px;
}
.article-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: justify;
}

.article-date {
    font-size: 13px;
    color: var(--accent-color);
    margin-top: 15px;
    display: inline-block;
}

/* APP下载区域样式 */
.app-section {
    background: linear-gradient(135deg, var(--card-bg), var(--hover-color));
    position: relative;
    overflow: hidden;
}

.app-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.1), transparent);
    border-radius: 50%;
}

.app-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-image {
    position: relative;
}

.app-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.app-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.app-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.app-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.feature-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.app-download-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    background-color: var(--card-bg);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    border-color: var(--primary-color);
}

.btn-icon {
    font-size: 32px;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.btn-size {
    font-size: 13px;
    color: var(--text-secondary);
}

.qr-code-section {
    margin-top: 30px;
}

.qr-code {
    display: inline-block;
    text-align: center;
}

.qr-code img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    border: 3px solid var(--border-color);
}

.qr-code p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 用户评价样式 */
.testimonial-section {
    background-color: var(--hover-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.3);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.user-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.rating {
    font-size: 14px;
    color: var(--accent-color);
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.testimonial-date {
    font-size: 13px;
    color: var(--accent-color);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #0f0f1e, #1a1a2e);
    padding: 60px 0 20px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.footer-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border-radius: 50%;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--text-secondary);
}

.footer-qr {
    margin-top: 20px;
    text-align: center;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.footer-qr p {
    margin-top: 10px;
    font-size: 13px;
}

.footer-links-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.links-group {
    margin-bottom: 25px;
}

.links-group h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links-container a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 15px;
    background-color: var(--card-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.links-container a:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: var(--primary-color);
}

.disclaimer {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .app-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 450px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .app-download-buttons {
        flex-direction: column;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .app-content h2 {
        font-size: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background-color: var(--primary-color);
    color: var(--text-color);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
